
<div class="fly-home" style="background-image: url();">
    <img src="__ROOT__/<?php echo $res['face'] ?>" alt="贤心">
    <h1>
        <?php echo $res['nickname'] ?>
        <?php if($res['sex']=='男'){ ?>
            <i class="iconfont           icon-nan        "></i>
        <?php }else{ ?>
            <i class="iconfont           icon-nv        "></i>
        <?php } ?>
        
        <span style="color:#c00;">
            （管理员）
        </span>
    </h1>
    <p class="fly-home-info">
        <i class="iconfont icon-zuichun" title="飞吻">
        </i>
        <span style="color: #FF7200;">
            <?php echo $res['kiss'] ?>飞吻
        </span>
        <i class="iconfont icon-shijian">
        </i>
        <span>
            <?php echo date("Y.m.d",$res['create_time']) ?> 加入
        </span>
        <i class="iconfont icon-chengshi">
        </i>
        <span>
            来自<?php echo $res['city'] ?>
        </span>
    </p>
    <p class="fly-home-sign">
        （<?php echo $res['sign'] ?>）
    </p>
</div>
<div class="main fly-home-main">
    <div class="layui-inline fly-home-jie">
        <div class="fly-panel">
            <h3 class="fly-panel-title">
               <?php echo $res['nickname'] ?> 最近的提问
            </h3>
            <ul class="jie-row">
            <?php foreach ($sql as  $v) { ?>
                 <li>
                    <a href="{:U('home/Publish/homepage',array('id'=>$v['id']))}" class="jie-title">
                       <?php echo $v['title'] ?>
                    </a>
                    <i>
                       发布时间<?php echo date("Y.m.d",$v['create_time']) ?>
                    </i>
                    <em>
                        <?php echo $v['view_num'] ?>阅<?php echo $v['answer_num'] ?>答
                    </em>
                </li>
            <?php } ?>
               
            </ul>
        </div>
    </div>
    <div class="layui-inline fly-home-da">
        <div class="fly-panel">
            <h3 class="fly-panel-title">
                <?php echo $res['nickname'] ?> 最近的回答
            </h3>
            <ul class="home-jieda">
            <?php foreach ($arr as $v) { ?>
                <li>
                    <p>
                        <span>
                            发布时间<?php echo date("Y.m.d",$v['create_time']) ?>
                        </span>
                        在
                        <a href="{:U('home/Publish/homepage',array('id'=>$v['qid']))}" target="_blank">
                            <?php echo $v['title'] ?>
                        </a>
                        中回答：
                    </p>
                    <div class="home-dacontent">
                        <?php echo $v['content'] ?>
                    </div>
                </li>
            <?php } ?>
                
            </ul>
        </div>
    </div>
</div>